#ifndef		Game__ComputerTank_h
#define		Game__ComputerTank_h

#include	"ITank.h"

class ComputerTank : public ITank
{
public:
	ComputerTank();
	virtual void update(double delay);
	virtual bool isPlayer() const;
	void setPlayer(ITank * player);
private:
	bool isPlayerAhead() const;
	Facing getNewDirection() const;
	void setNewDirection(Facing facing);
private:
	ITank * m_player;
	double m_lastFacingChange;
};

#endif // Game__ComputerTank_h

